#include <iostream>

using std::cout;
using std::endl;

class Complex{
public:
    Complex(int real,int image)
    :_real(real)
     ,_image(image)
    {

    }
    int getReal() const{
        return _real;
    }
    int getImage() const{
        return _image;
    }

    void print(){
        cout << _real <<":"<< _image << endl;
    }
private:
    int _real;
    int _image;
};

Complex operator+(const Complex & lhs,const Complex & rhs){
    return Complex(lhs.getReal()+rhs.getReal(),lhs.getImage()+rhs.getImage());

}

void test(){
    Complex c1(1,2),c2(3,4);
    Complex c3 = c1+c2;
    c3.print();
}

int main()
{
    test();
    return 0;
}

